package com.yonyou.gmmc.service.customer.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.marketing.common.dto.customerInfo.CarInfoDto;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.customer.entity.TmDealer;
import tk.mybatis.mapper.common.Mapper;

@OracleDb
public interface TmDealerMapper extends Mapper<TmDealer> {

    public List<String> selectAdminUser();
    
    public int updateSameCode();

    public List<TmDealer> selectExsitByTI();

    public int updateDealer();

    public int updateDealerUser();

    public int updateAdminUser(Map<String,Object> map);
    
    public List<CarInfoDto> carInfo(@Param("openId") String openId);
    
    public List<TmDealer> firstDealer(@Param("vin") String vin);
    
    public List<TmDealer> firstDealers(@Param("vin") String vin);

    public List<TmDealer> secondDealer(@Param("vin") String vin);

    public List<TmDealer> thirdDealer(@Param("regionName") String regionName,@Param("longitude") String longitude,@Param("latitude") String latitude);
    
    public int insertTmDealer(List<TmDealer> list);
    
    public List<TmDealer> selectDealer(@Param("DEALER_CODE") String DEALER_CODE);
    
    public List<TmDealer> queryDealer(@Param("dealerCode") String dealerCode);
}